package com.tcl.aota.admin.job;

import com.tcl.aota.admin.manager.CurefManager;
import com.tcl.aota.admin.util.SpringApplicationContextHolder;
import org.apache.log4j.Logger;

/**
 * 同步CU
 *
 * @author kelong
 * @date 5/13/15
 */
public class SynchCuJob {
    public static Logger LOG = Logger.getLogger(UpFileJob.class);

    /**
     * sychCu from FOTA
     */
    public static void sychCu() {
        LOG.info("sychCu job Start...");
        CurefManager curefManager =
            (CurefManager) SpringApplicationContextHolder.getSpringBean("curefManager");
        curefManager.updateCuref();
        LOG.info("sychCu job end...");
    }
}
